<template id='BottomBar'>
  <div class="BottomBar">
    <div class="homeBg"></div>
    <div class="main">
      <div class="leftPath">
        <div class="logo">LOGO</div>
        <ul class="linkIcon">
          <template v-for="(item, index) in iconList">
            <li
              v-if="item.icon"
              :key="index"
              :style="{ backgroundImage: `url(${item.icon})` }"
            ></li>
          </template>
        </ul>
      </div>
      <div class="rightPath">
        <div class="linkText">
          <ul class="linkItem" v-for="(item, index) in textList" :key="index">
            <li v-for="(element, location) in item.itemList" :key="location">
              <span>{{ element.name }}</span>
            </li>
          </ul>
        </div>
      </div>
    </div>
    <div class="foot">
      <span>Playtoo Inc. 2021 Copyright</span>
    </div>
  </div>
</template>

<script>
// 这里可以导入其他文件（比如：组件，工具js，第三方插件js，json文件，图片文件等等）

export default {
  name: "",
  components: {},
  // 定义属性
  data() {
    return {
      iconList: [
        { id: 1, icon: require("../assets/images/bottomBar/1.png"), path: "" },
        { id: 2, icon: require("../assets/images/bottomBar/2.png"), path: "" },
        { id: 3, icon: require("../assets/images/bottomBar/3.png"), path: "" },
        { id: 4, icon: require("../assets/images/bottomBar/4.png"), path: "" },
        { id: 5, icon: require("../assets/images/bottomBar/5.png"), path: "" },
      ],
      textList: [
        {
          itemList: [
            {
              id: 1,
              name: "Play",
              path: "",
            },
            {
              id: 2,
              name: "Missions",
              path: "",
            },
            {
              id: 3,
              name: "Tournaments",
              path: "",
            },
            {
              id: 4,
              name: "Winners",
              path: "",
            },
          ],
        },
        {
          itemList: [
            {
              id: 1,
              name: "Sweepstake Rules",
              path: "",
            },
            {
              id: 2,
              name: "Tournament Rules",
              path: "",
            },
            {
              id: 3,
              name: "Cookie Policy",
              path: "",
            },
            {
              id: 4,
              name: "Privacy Policy",
              path: "",
            },
          ],
        },
        {
          itemList: [
            {
              id: 1,
              name: "Apply as developer",
              path: "",
            },
            {
              id: 2,
              name: "Contact",
              path: "",
            },
            {
              id: 3,
              name: "FAQ",
              path: "",
            },
            {
              id: 4,
              name: "Suport",
              path: "",
            },
          ],
        },
      ],
    };
  },
  // 计算属性，会监听依赖属性值随之变化
  computed: {},
  // 监控data中的数据变化
  watch: {},
  // 方法集合
  methods: {},
  // 生命周期 - 创建完成（可以访问当前this实例）
  created() {},
  // 生命周期 - 挂载完成（可以访问DOM元素）
  mounted() {},
  beforeCreate() {}, // 生命周期 - 创建之前
  beforeMount() {}, // 生命周期 - 挂载之前
  beforeUpdate() {}, // 生命周期 - 更新之前
  updated() {}, // 生命周期 - 更新之后
  beforeDestroy() {}, // 生命周期 - 销毁之前
  destroyed() {}, // 生命周期 - 销毁完成
  activated() {}, // 如果页面有keep-alive缓存功能，这个函数会触发
};
</script>

<style lang='less' scoped>
.BottomBar {
  user-select: none;
  position: absolute;
  bottom: 0;
  background-image: url("../assets/images/bottomBar/bg.png");
  background-size: 100% 100%;
  width: 100%;
  height: 321px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 18px;
  .homeBg {
    display: none;
  }
  .main {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    .leftPath {
      margin-left: 335px;
      display: flex;
      flex-direction: column;
      align-items: center;
      .logo {
        font-size: 60px;
        width: 153px;
        height: 48px;
        cursor: pointer;
      }
      .linkIcon {
        margin-top: 58px;
        display: flex;
        align-items: center;
        justify-content: center;
        li {
          width: 38px;
          height: 38px;
          background-size: 100% 100%;
          margin-right: 10px;
          cursor: pointer;
        }
        li:last-child {
          margin-right: 0px;
        }
        li:hover {
          -webkit-animation: slideCenter 0.75s
            cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
          animation: slideCenter 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
          @-webkit-keyframes slideCenter {
            0% {
              -webkit-transform: translateZ(600px);
              transform: scale(2);
              opacity: 0;
            }
            100% {
              -webkit-transform: translateZ(0);
              transform: scale(1);
              opacity: 1;
            }
          }
          @keyframes slideCenter {
            0% {
              -webkit-transform: translateZ(600px);
              transform: scale(2);
              opacity: 0;
            }
            100% {
              -webkit-transform: translateZ(0);
              transform: scale(1);
              opacity: 1;
            }
          }
        }
      }
    }
    .rightPath {
      margin-right: 335px;
      .linkText {
        display: flex;
        align-items: center;
        justify-items: center;
        .linkItem {
          margin-right: 148px;
          li {
            margin-bottom: 30px;
            span {
              font-size: 18px;
              opacity: 0.57;
              cursor: pointer;
            }
            span:hover {
              -webkit-animation: focusFonts 0.7s
                cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
              animation: focusFonts 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94)
                both;
              @-webkit-keyframes focusFonts {
                0% {
                  -webkit-filter: blur(12px);
                  filter: blur(12px);
                  opacity: 0;
                }
                100% {
                  -webkit-filter: blur(0px);
                  filter: blur(0px);
                  opacity: 1;
                }
              }
              @keyframes focusFonts {
                0% {
                  -webkit-filter: blur(12px);
                  filter: blur(12px);
                  opacity: 0;
                }
                100% {
                  -webkit-filter: blur(0px);
                  filter: blur(0px);
                  opacity: 1;
                }
              }
            }
          }
          li:last-child {
            margin-bottom: 0px;
          }
        }
        .linkItem:last-child {
          margin-right: 0;
        }
      }
    }
  }
  .foot {
    margin-top: 54px;
    span {
      opacity: 0.25;
      font-size: 16px;
    }
  }
}
@media screen and (max-width: 480px) {
  .BottomBar {
    background-image: none;
    width: 100%;
    height: auto;
    position: unset;
    .homeBg {
      display: block;
      background-image: url("../assets/images/homeBg2.png") !important;
      background-size: 100% 100%;
      width: 100%;
      height: 386px;
      box-shadow: -0px -40px 25px rgba(0, 0, 0, 0.25);
      -webkit-box-shadow: -0px -40px 25px rgba(0, 0, 0, 0.25);
      -moz-box-shadow: -0px -40px 25px rgba(0, 0, 0, 0.25);
      position: relative;
      z-index: 49;
    }
    .main {
      background-image: url("../assets/images/bottomBar/bg2.png") !important;
      background-size: 100% 100%;
      min-height: 230px;
      width: 100%;
      .leftPath {
        margin-left: 30px;
        .logo {
          font-size: 40px;
          width: 102px;
          height: 32px;
        }
        .linkIcon {
          margin-top: 38px;
          li {
            width: 25px;
            height: 25px;
            margin-right: 6.6px;
            cursor: pointer;
          }
        }
      }
      .rightPath {
        margin-right: 30px;
        .linkText {
          .linkItem {
            margin-right: 48px;
            li {
              margin-bottom: 20px;
            }
          }
        }
      }
    }
    .foot {
      margin-top: -30px;
      span {
        font-size: 12px;
      }
    }
  }
}
</style>
